package com.nbjtjc.safe.api.safe;


import com.nbjtjc.safe.bean.Result;
import com.nbjtjc.safe.model.safe.SafeBasisClassify;
import com.nbjtjc.safe.service.safe.SafeBasisClassifyServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/safe/basisClassify")
@CrossOrigin("*")
public class SafeBasisClassifyController {
    @Autowired
    private SafeBasisClassifyServiceImpl basisClassifyService;


    @GetMapping("find")
    public Result search( SafeBasisClassify safeBasisClassify){
        return basisClassifyService.find(safeBasisClassify);
    }

    @PostMapping("add")
    public Result add(@RequestBody  SafeBasisClassify safeBasisClassify){
        return basisClassifyService.add(safeBasisClassify);
    }
}
